package com.lee.springCloud.serveice;

import com.lee.springCloud.domain.CommonResult;
import com.lee.springCloud.domain.Payment;
import org.apache.ibatis.annotations.Param;

/**
 * @author Lee
 * @createDate 2021/12/22 14:03
 */
public interface PaymentService {
    /**
     * 将实体类中数据持久化到数据库
     * @param payment
     * @return CommonResult 结果集
     * @author Lee
     * @createDate 2021/12/22 11:44
     */
    CommonResult create(Payment payment);
    /**
     * 根据Payment ID查询数据库
     * @param id
     * @return CommonResult 结果集
     * @author Lee
     * @createDate 2021/12/22 11:58
     */
    CommonResult getPaymentById(@Param("id") Long id);
}
